const express = require('express');

let app = express();

// 导入路由器
let newsRouter = require('./routes2/newsRouter');
// 导入路由器
let userRouter = require('./routes2/userRouter');
// 导入路由器
let goodsRouter = require('./routes2/goodsRouter');


// 使用路由
app.use('/news',newsRouter);
app.use('/user',userRouter);
app.use('/goods',goodsRouter);

app.listen(80,()=>{
    console.log('success');
})